package com.nsyue.auth.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nsyue.auth.dao.ThirdSystemDao;
import com.nsyue.auth.entity.ThirdSystem;
import com.nsyue.auth.service.ThirdSystemService;
import org.springframework.stereotype.Service;

/**
 * 第三方系统表(ThirdSystem)表服务实现类
 *
 * @author laixm
 * @since 2023-05-06 15:17:00
 */
@Service("thirdSystemService")
public class ThirdSystemServiceImpl extends ServiceImpl<ThirdSystemDao, ThirdSystem> implements ThirdSystemService {

    @Override
    public ThirdSystem getPublicKeyByAppid(String appid) {
        return getOne(new LambdaQueryWrapper<ThirdSystem>().eq(ThirdSystem::getAppid,appid));
    }
}

